<!-- 题库管理-题目管理 -->
<div class="manageTitle">
	题目管理
</div>

<div class="content" ng-controller="topicManage">
	<div class="addBtn">
		<span class="title">试题类型</span>
		<div class="input-group m-b">
		    <div class="input-group-btn dropdown" dropdown="">
		        <button type="button" class="btn btn-default" dropdown-toggle="" aria-haspopup="true"
		        aria-expanded="false">
		            {{nowTopic}}
		            <span class="caret">
		            </span>
		        </button>
		        <ul class="dropdown-menu">
		            <li ng-repeat="item in topicType" ng-click="selectTopicType(item);">
		                <a href="javascript:;">
		                    {{item}}
		                </a>
		            </li>
		        </ul>
		    </div>
		</div>


		<span class="title">试题所属分类</span>
		<div class="input-group m-b">
		    <div class="input-group-btn dropdown" dropdown="">
		        <button type="button" class="btn btn-default" dropdown-toggle="" aria-haspopup="true"
		        aria-expanded="false">
		            {{nowTheme.name}}
		            <span class="caret">
		            </span>
		        </button>
		        <ul class="dropdown-menu">
		            <li ng-repeat="item in selectList.themeArr" ng-click="selectTheme(item);">
		                <a href="javascript:;">
		                    {{item.name}}
		                </a>
		            </li>
		        </ul>
		    </div>
		</div>

		<span class="title">试题所属章节</span>
		<div class="input-group m-b">
		    <div class="input-group-btn dropdown" dropdown="">
		        <button type="button" class="btn btn-default" dropdown-toggle="" aria-haspopup="true"
		        aria-expanded="false">
		            {{nowChapter.name}}
		            <span class="caret">
		            </span>
		        </button>
		        <ul class="dropdown-menu">
		            <li ng-repeat="item in selectList.chapterArr" ng-click="selectChapter(item);">
		                <a href="javascript:;">
		                    {{item.name}}
		                </a>
		            </li>
		        </ul>
		    </div>
		</div>

		<a ui-sref="fullScore.newExam" class="btnForClass">新建试题</a>

		<div class="search">
			<input type="text" placeholder="请输入关键词进行查询搜索" ng-model="searchVal" ng-change="getList();">
			<a href="javascript:;">搜索</a>
		</div>
	</div>

	<div class="table">
		<table>
			<thead>
				<tr>
					<th class="width60">ID</th>
					<th>内容</th>
					<th class="width100">所属分类</th>
					<th class="width100">所属章节</th>
					<th class="width100">题目类型</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="item in listTopic">
					<td>{{item.id}}</td>
					<td ng-bind-html="item.title"></td>
					<td>{{item.theme_name}}</td>
					<td>{{item.chapter_name}}</td>
					<td>{{item.type_name}}</td>
					<td class="topicHasWidth">
						<a href="javascript:;"><img src="../img/edit.png" class="edit" ng-click="editTopic(item);"></a>
						<a href="javascript:;"><img src="../img/delete.png" ng-click="deleteTopic(item);"></a>
					</td>
				</tr>
				<tr ng-if="noData">
					<td colspan="6"><img src="../img/noData.png" class="height"></td>
				</tr>
			</tbody>
		</table>

		<ul class="pagination"></ul>
	</div>
</div>